package com.base.cn.platform.os.service.manage.order.goods;

import com.base.cn.platform.os.service.FeignAuthConfig;
import com.base.cn.platform.os.service.manage.BaseService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 图书订单扩展数据接口
 *
 * @author s.li
 * @create 2018-05-29-15:32
 */
@FeignClient(name = BaseService.appName,configuration = FeignAuthConfig.class)
public interface OrderBookService extends BaseService {

    /**
     * 修改签收 状态
     * @param userId 用户ID
     * @param orderId 订单ID
     * @param signStatus 签收 状态，2已签收 ，1未签收
     * @return Map<String,Object>
     */
    @RequestMapping(contextPath + "/order/orderBook/updateSignStatus")
    Map<String,Object> updateSignStatus(@RequestParam("userId") BigDecimal userId,
                                        @RequestParam("orderId") BigDecimal orderId,
                                        @RequestParam("signStatus") int signStatus);
}
